package com.lecture.junit.tdd.example;

public class MustChangePasswordBeforeLogin extends LoginServiceState {

	@Override
	public void login(LoginServiceInterface context, IAccount acc,
			String password) {
		if (!acc.isPasswordExpired()){
			context.setState(acc.getUserName(), new AwaitFirstLoginAttempt());
			super.login(context, acc, password);
		}
	}

	@Override
	protected void handlePasswordFail(LoginServiceInterface context,
			IAccount acc) {
		
	}



}
